//package com.mccken.demo.controller;
//
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RequestParam;
//import org.springframework.web.bind.annotation.RestController;
//
//import com.mccken.annotation.DoHystrix;
//import com.mccken.demo.entity.UserInfo;
//import com.mccken.demo.service.TempService;
//import com.mccken.demo.whitelist.annotation.DoWhiteList;
//
//import lombok.SneakyThrows;
//import lombok.extern.slf4j.Slf4j;
//
///**
// * @program: mccken-collect
// * @description:
// * @author: mccken
// * @create: 2022-07-09 18:25
// **/
//@RestController
//@Slf4j
//public class UserController {
//	
//	@Autowired
//	private TempService tempService;
//
//	@SneakyThrows
//	@DoWhiteList(key = "userId", returnJson = "{\"code\":\"1111\",\"info\":\"非白名单可访问用户拦截！\"}")
//	@DoHystrix(timeoutValue = 350, returnJson = "{\"code\":\"1112\",\"info\":\"调用方法超过350毫秒，熔断返回！\"}")
//	@RequestMapping(path = "/api/queryUserInfo", method = RequestMethod.GET)
//	public UserInfo queryUserInfo(@RequestParam String userId) {
//		
////		tempService.test1();
////		tempService.test2();
//
//		log.info("查询用户信息，userId：{}", userId);
//		Thread.sleep(1000);
//		
//		return UserInfo.builder()
//				.address("广东省")
//				.name("mccken"+userId)
//				.age(19)
//				.build();
//	}
//}
